/**
 *  Copyright 2010 Kyle O'Connor, Justin Arling, Mike Mercieca
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package edu.drexel.sd0910.ece01.aqmon.data;

import org.json.simple.JSONAware;

/**
 * Implementation for a GLatLng object (used in Google Maps) to output as a JSON
 * object.
 * 
 * @author Kyle O'Connor
 * 
 */
public class GLatLng implements JSONAware {

	private double lat;
	private double lon;

	/**
	 * Default constructor.
	 * 
	 * @param lat double value for latitude
	 * @param lon double value for longitude
	 */
	public GLatLng(double latitude, double longitude) {
		this.lat = latitude;
		this.lon = longitude;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.json.simple.JSONAware#toJSONString()
	 */
	public String toJSONString() {
		return "new GLatLng(" + lat + ", " + lon + ")";
	}

}
